/**
 * @author Javier Guaje <jrguajeg@gmail.com>
 */

package co.edu.unal.satacredito.database.entity;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import java.io.Serializable;
import org.bson.types.ObjectId;

@Entity("franchise")
public class Franchise implements Serializable {
    
    @Id
    private ObjectId titularFranchiseId;
    
    private ObjectId franchiseId;
    
    private String franchiseName;
    
    private String franchiseTitular;
    
    private String username;
    
    private String password;
    
    private int permission;

    public ObjectId getFranchiseId() {
        return franchiseId;
    }

    public void setFranchiseId(ObjectId franchiseId) {
        this.franchiseId = franchiseId;
    }

    public String getFranchiseName() {
        return franchiseName;
    }

    public void setFranchiseName(String franchiseName) {
        this.franchiseName = franchiseName;
    }

    public String getFranchiseTitular() {
        return franchiseTitular;
    }

    public void setFranchiseTitular(String franchiseTitular) {
        this.franchiseTitular = franchiseTitular;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPermission() {
        return permission;
    }

    public void setPermission(int permission) {
        this.permission = permission;
    }

    public ObjectId getTitularFranchiseId() {
        return titularFranchiseId;
    }

    public void setTitularFranchiseId(ObjectId titularFranchiseId) {
        this.titularFranchiseId = titularFranchiseId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}